using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LabirintGUI
{
    using System;
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Graphics;


    class Button
    {
        public Boolean hovering;
        public Boolean clicking;
        public Rectangle position;
        private Texture2D tex;

        public Texture2D Tex
        {
            get { return tex; }
            set { tex = value; }
        }
        private Texture2D onHovering;

        public Texture2D OnHovering
        {
            get { return onHovering; }
            set { onHovering = value; }
        }
        private Texture2D onClicking;

        public Texture2D OnClicking
        {
            get { return onClicking; }
            set { onClicking = value; }
        }
        public String name;

        //Set up variables
        public Button(Rectangle position, Texture2D tex, Texture2D hovering, Texture2D clicking, String n) //Our constructor
        {
            this.position = position; //Position in 2D
            this.tex = tex; //Our texture to draw
            onHovering = hovering;
            onClicking = clicking;
            name = n;
        }
        public void Draw(SpriteBatch batch) //Draw function, same as mousehandler one.
        {
            batch.Draw(tex, position, Color.White);
        }


    }

} 
